
import 'flutter_kuafood_camera_platform_interface.dart';

class FlutterKuafoodCamera  {
  Future<String?> getPlatformVersion() {
    return FlutterKuafoodCameraPlatform.instance.getPlatformVersion();
  }

  Future beginRecordVideo() {
    return FlutterKuafoodCameraPlatform.instance.beginRecordVideo();
  }

  Future<String?> endRecordVideo() {
    return FlutterKuafoodCameraPlatform.instance.endRecordVideo();
  }

  Future switchFrontCamera() {
    return FlutterKuafoodCameraPlatform.instance.switchFrontCamera();
  }

  Future switchBackCamera() {
    return FlutterKuafoodCameraPlatform.instance.switchBackCamera();
  }

  Future<void> openFlashLight(){
    return FlutterKuafoodCameraPlatform.instance.openFlashLight();
  }

  Future<void> closeFlashLight(){
    return FlutterKuafoodCameraPlatform.instance.closeFlashLight();
  }



  // @override
  // Future switchFrontCamera() async{
  //   // TODO: implement switchFrontCamera
  //   return await methodChannel.invokeMethod('switchFrontCamera');
  // }
  //
  // @override
  // Future switchBackCamera() async{
  //   // TODO: implement switchBackCamera
  //   return await methodChannel.invokeMethod('switchBackCamera');
  // }

}
